<?php defined('SYSPATH') OR die('No direct script access.');

class Database_Query_Builder_Update extends Kohana_Database_Query_Builder_Update {
	public function reset($condition = NULL)
	{
		(empty($condition) || $condition == 'table') && $this->_table = NULL;

		(empty($condition) || $condition == 'set') && $this->_set   = array();
		(empty($condition) || $condition == 'where') && $this->_where = array();

		(empty($condition) || $condition == 'limit') && $this->_limit = NULL;

		empty($condition) && $this->_parameters = array();

		empty($condition) && $this->_sql = NULL;

		return $this;
	}

}
